<link href="css/menu.css" rel="stylesheet" media="screen" type="text/css" />
<script type="text/javascript">
    var timeout         = 500;
    var closetimer		= 0;
    var ddmenuitem      = 0;

    function jsddm_open()
    {	jsddm_canceltimer();
        jsddm_close();
        ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');}

    function jsddm_close()
    {if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}

    function jsddm_timer()
    {closetimer = window.setTimeout(jsddm_close, timeout);}

    function jsddm_canceltimer()
    {	if(closetimer)
        {	window.clearTimeout(closetimer);
            closetimer = null;}}

    $(document).ready(function()
    {	$('#jsddm > li').bind('mouseover', jsddm_open);
        $('#jsddm > li').bind('mouseout',  jsddm_timer);});

    document.onclick = jsddm_close;
</script>
<div id='CatalogTags'>
    <ul id="jsddm">
        <?php if (count ( $this->_var['user_nav'] ) > 0): ?>
        <?php $_from = $this->_var['user_nav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'user_left');if (count($_from)):
    foreach ($_from AS $this->_var['user_left']):
?>
        <li><a href="<?php echo $this->_var['user_left']['url']; ?>" ><?php echo $this->_var['user_left']['name']; ?></a>

            <?php if (count ( $this->_var['user_left']['item'] ) > 0): ?>

            <ul>
                <?php $_from = $this->_var['user_left']['item']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'i');if (count($_from)):
    foreach ($_from AS $this->_var['i']):
?>
                <li style="margin:0;"><a href="<?php echo $this->_var['i']['url']; ?>" ><?php echo $this->_var['i']['name']; ?></a>
                    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            </ul>
            <?php endif; ?>
        </li>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
        <?php endif; ?>

    </ul>
    <div class='clear'></div>
</div>


<div>
      <ul style="float:right;">
        <?php if (count ( $this->_var['user_shop_nav'] ) > 0): ?>
        <?php $_from = $this->_var['user_shop_nav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'user_shop');if (count($_from)):
    foreach ($_from AS $this->_var['user_shop']):
?>
        <a href="<?php echo $this->_var['user_shop']['url']; ?>" ><?php echo $this->_var['user_shop']['name']; ?></a>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
        <?php endif; ?>

    </ul>
</div>

<div class='clear'></div>